iOS: How to access the `UIKeyboard`?

Posted by MattDiPasquale on Stack Overflow See other posts from Stack Overflow or by MattDiPasquale
Published on 2011-06-23T16:10:26Z Indexed on 2013/10/28 3:55 UTC
Read the original article Hit count: 242

Filed under:
|
|
|

I want to get a pointer reference to UIKeyboard *keyboard to the keyboard on screen so that I can add a transparent subview to it, covering it completely, to achieve the effect of disabling the UIKeyboard without hiding it.

In doing this, can I assume that there's only one UIKeyboard on the screen at a time? I.e., is it a singleton? Where's the method [UIKeyboard sharedInstance]. Brownie points if you implement that method via a category. Or, even more brownie points if you convince me why it's a bad idea to assume only one keyboard and give me a better solution.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios